package com.ac.dao;

import com.ac.entity.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceDao {

    //查询分页
    List<Device> queryDevice(
            @Param("buildingId") Integer buildingId,
            @Param("startIndex") int startIndex,
            @Param("pageRows") int pageRows);

    //查询数量--分页用
    int queryDeviceCount(@Param("buildingId") Integer buildingId);

    void updateStatus(Device device);

    void add(Device device);
}
